﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

namespace Kokomo.Mirror.PeFormat
{
	class PeCategoryAttribute : CategoryAttribute
	{
		static PeCategoryAttribute()
		{
			_categoryNames = new Dictionary<PeCategory, string>();
			_categoryNames[PeCategory.State] = PeModule.StateCategoryName;
			_categoryNames[PeCategory.Layout] = PeModule.LayoutCategoryName;
			_categoryNames[PeCategory.Memory] = PeModule.MemoryCategoryName;
			_categoryNames[PeCategory.Platform] = PeModule.PlatformCategoryName;
		}
		static Dictionary<PeCategory, string> _categoryNames;

		public PeCategoryAttribute(PeCategory category)
			: base(_categoryNames[category])
		{
		}
	}
}
